home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
CRS
/
crs25.d81
/
xmas.arc
/
WINTER SCENE.C
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2009-10-10
|
8KB
|
229 lines
5 REM PUT GRAPHICS CHARACTERS IN RAM
10 POKE 52,48:POKE56,48:CLR
20 POKE56334,PEEK(56334)AND254
30 POKE1,PEEK(1)AND 251
40 FORI=0TO511:POKEI+12288,PEEK(I+53760):NEXT
50 POKE1,PEEK(1)OR4
60 POKE56334,PEEK(56334)OR1
65 V=53248:POKEV+21,0:POKEV+23,0:POKEV+29,0
70 PRINT"[147]"
80 PRINT "PATIENCE PLEASE "
90 POKE53280,7
110 FORI=12640 TO12799:READA:POKEI,A:NEXT
111 DATA 255,127,31,3,0,0,0,0
112 DATA 255,255,255,255,127,31,3,0
113 DATA 255,254,240,192,0,0,0,0
114 DATA 255,255,255,255,252,224,192,128
115 DATA 192,96,48,24,14,3,0,0
116 DATA 0,0,0,0,0,128,240,63
117 DATA 3,6,12,24,112,192,0,0
118 DATA 0,0,0,0,0,1,15,252
119 DATA 63,240,128,0,0,0,0,0
120 DATA 0,0,3,14,24,48,96,192
121 DATA 252,15,1,0,0,0,0,0
122 DATA 0,0,192,112,24,12,6,3
123 DATA 255,255,255,255,255,255,255,255
124 DATA 0,0,0,0,24,60,126,255
125 DATA 255,248,192,0,0,0,0,0
126 DATA 255,255,255,254,248,224,192,128
127 DATA 255,31,3,0,0,0,0,0
128 DATA 255,255,255,127,31,7,3,1
129 DATA 1,3,7,15,31,63,127,255
130 DATA128,192,224,240,248,252,254,255
216 POKE2043,204
217 FORX=125 TO135:POKEV+6,X:NEXT
218 FORX=135 TO160:POKEV+6,X:POKEV+7,X-10:NEXT
220 POKE53281,1: REM BACKGROUND COLOR TO WHITE
305 FOR I=12800 TO 13759:READ A:POKEI,A:NEXT
310 REM SKIER1 HORIZONTAL LEFT EXTENDED
311 DATA 0,64,0,1,85,0,1,80,64,2,160,64,2,160,0,2,160,0,0,60,0
312 DATA 28,60,0,31,255,0,11,255,64,8,60,64,2,60,128,2,60,128,0,140,32
313 DATA 0,140,32,3,35,8,3,35,8,76,4,194,76,4,194,85,85,85,85,85,85,0
315 REM SKIER2 HORIZONTAL LEFT COMPACT
316 DATA0,64,0,1,85,0,1,80,64,2,160,64,2,160,0,2,160,0,0,60,0
317 DATA 0,60,0,0,60,0,1,252,0,1,252,0,0,188,0,0,188,0,0,44,0
318 DATA0,44,0,0,56,0,0,56,0,5,50,0,5,50,0,5,85,64,5,85,64,0
320 REM SKIER3 DOUBLEPOLE LEFT FORWARD
321 DATA1,0,0,5,85,0,5,65,0,10,129,0,10,128,0,10,128,0,0,240,0
322 DATA0,240,0,0,240,0,31,252,0,31,252,0,8,15,0,8,15,0,2,12,0
323 DATA 2,12,0,0,140,16,0,140,80,1,109,64,1,101,0,1,84,0,1,80,0,0
325 REM SKIER4 DOUBLEPOLE LEFT COMPACT
326 DATA 0,0,0,0,0,0,4,0,0,21,80,0,21,4,0,42,4,0,42,0,0
327 DATA 42,0,0,3,240,0,3,240,0,3,252,0,3,15,0,3,15,0,3,108,0
328 DATA 0,104,0,0,10,16,0,2,144,1,65,160,1,69,32,1,84,0,1,80,0,0
330 REM SKIER5 RIGHT DOWNHILL
331 DATA 0,0,0,0,0,16,0,5,84,0,16,85,0,16,168,0,0,168,0,128,168
332 DATA 0,163,192,0,43,192,4,10,192,5,14,128,1,15,144,1,127,16,0,127,0
333 DATA 0,80,0,0,16,0,0,20,0,0,5,0,0,5,0,0,0,0,0,0,0,0
335 REM SKIER6 TUMBLE
336 DATA 0,0,0,0,68,0,0,68,0,1,1,0,1,1,0,4,0,64,4,8,64
337 DATA 28,8,208,28,32,208,92,32,212,83,13,20,82,143,20,66,252,6,6,240,10
338 DATA 7,240,40,3,240,160,26,253,128,90,253,0,90,0,0,26,0,0,26,0,0,0
340 REM SKIER7 UPHILL LEFT COMPACT
341 DATA 0,4,0,0,21,80,0,21,4,0,42,4,0,42,0,0,42,0,0,3,192
342 DATA 0,3,192,0,7,192,0,71,192,0,75,192,0,75,192,0,91,0,0,27,0
343 DATA 0,27,0,0,11,0,0,9,0,0,1,0,0,1,64,0,0,64,0,0,64,0
345 REM SKIER8 UPHILL LEFT EXTENDED
346 DATA 0,64,0,1,127,0,1,96,64,2,160,64,2,160,0,18,160,0,17,60,0
347 DATA 17,252,0,22,252,0,6,60,0,5,188,0,1,188,0,1,32,0,0,96,0
348 DATA 0,96,0,0,32,0,0,36,0,0,4,0,0,5,0,0,1,0,0,1,0,0
350 REM SKIER9 UPHILL RIGHT COMPACT
351 DATA 0,16,0,5,84,0,16,84,0,16,168,0,0,168,0,0,168,0,3,192,0
352 DATA 3,192,0,3,208,0,3,209,0,3,225,0,3,225,0,0,229,0,0,228,0
353 DATA 0,228,0,0,224,0,0,96,0,0,64,0,1,64,0,1,64,0,1,0,0,0
355 REM SKIER10 UPHILL RIGHT EXTENDED
356 DATA 0,1,0,0,127,64,1,5,64,1,10,128,0,10,128,0,10,132,0,63,69
357 DATA 0,63,68,0,63,148,0,60,144,0,62,80,0,62,64,0,9,64,0,9,0
358 DATA 0,9,0,0,8,0,0,24,0,0,16,0,0,80,0,0,64,0,0,64,0,0
360 REM SKIER11 RIGHT HORIZONTAL
361 DATA 0,1,0,0,85,64,1,5,64,1,10,128,0,10,128,0,10,128,0,60,0
362 DATA 0,60,0,0,60,0,0,63,64,0,63,64,0,62,0,0,62,0,0,8,0
363 DATA 0,8,0,0,44,0,0,44,0,0,140,80,0,140,80,1,85,80,1,85,80,0
365 REM BANNER PART ONE
366 DATA 3,68,68,3,51,51,4,0,0,5,1,21,49,69,21,49,85,16,65,17,20
367 DATA 65,1,20,49,1,16,49,1,21,5,1,21,4,0,0,3,51,51,3,68,68
368 DATA 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
370 REM BANNER PART TWO
371 DATA 68,68,68,51,51,51,0,0,0,21,21,17,21,21,17,17,17,21,17,17,21
372 DATA 21,21,1,16,16,1,17,17,5,17,17,5,0,0,0,51,51,51,68,68,68
373 DATA 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
375 REM BANNER PART THREE
376 DATA 68,68,68,51,51,51,0,0,0,16,68,4,16,69,20,1,5,84,4,4,68
377 DATA 1,4,4,4,4,4,16,68,4,16,68,4,0,0,0,51,51,51,68,68,68
378 DATA 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
380 REM BANNER PART FOUR
381 DATA 68,68,64,51,51,64,0,0,48,20,21,48,85,21,4,65,16,4,65,21,3
382 DATA 85,21,3,85,1,4,65,21,4,65,21,48,0,0,48,51,51,64,68,68,64
383 DATA 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
499 POKE53272,(PEEK(53272)AND240)+12
500 PRINT"[147]"
501 PRINT"[145]8888888888888888888888888888888888888888"
502 PRINT"[145]8888888888888888888888888888888888888888"
510 PRINT"[145]8888888888888888888888888888888888888888"
511 PRINT"[145]8888888888888888888888888888888888888888"
512 PRINT"[145]88888888888888;=888888888888888888888888"
513 PRINT"[145]888888888888;: <=8888888888888888888888"
514 PRINT"[145]8888;=8888;: _8888888;: <=888888"
515 PRINT"[145]88;: <=;: _888) <=8888"
516 PRINT"[145] M 9 "
517 PRINT"[145] M 9 54#67 >8? "
518 PRINT"[145] 9 M >8? N M >8? "
519 PRINT"[145] >8? M >8? N M >8? "
520 PRINT"[145] >8? M >8? N M 8 "
521 PRINT"[145] >8? M 8 N 9 M 8 "
522 PRINT"[145] 8 #M 8 N >8? M "
523 PRINT"[145] 8 M N >8? M "
524 PRINT"[145] 0132 >8? M "
525 PRINT"[145] 8>? 9 8 M"
526 PRINT"[145] 888? 9 >8? 8 "
527 PRINT"[145] >8888? >8? >8? "
528 PRINT"[145] 888888 >8? >8? "
529 PRINT"[145] 8[88[8 >8? 8 "
530 PRINT"[145] 888888 8 8 "
531 PRINT"[145] 8[8888 8 "
532 PRINT"[145] 888888 "
533 PRINT"[145]CCCCCK "
545 A=55296
555 FORI=55296+6*40TO55296+25*40:POKEI,9:NEXTI:REM BROWN FOR THE LOWER PART
560 Y=A+40*6+36
561 GOSUB 1900
562 Y=A+40*7+16
563 GOSUB 1900
564 Y=A+40*8+7
565 GOSUB 1900
566 Y=A+40*11+29
567 GOSUB 1900
568 Y=A+40*15+22
569 GOSUB 1900
570 Y=A+40*16+11
571 GOSUB 1900
574 FORI=0TO2:FORJ=0TO5:POKE55898+40*I+J,7:NEXTJ:NEXTI
575 POKE55899,9:POKE55939,9
580 POKE56141,8:POKE56181,8
700 V=53248:POKEV+28,255:POKEV+42,7:POKEV+37,2:POKEV+38,5
705 P=200
710 POKEV+16,8:POKEV+7,78:POKEV+21,8
711 FORX=90TO42STEP-6:POKEV+6,X
712 POKE 2043,P:FORT=1TO200:NEXTT:P=P+1:IFP>201THENP=200
713 NEXT
715 FOR X=42TO0STEP-6:POKEV+6,X:POKEV+7,64+2/6*X
720 POKE2043,P:FORT=1TO200:NEXTT:P=P+1:IFP>201THENP=200
721 NEXT
725 POKEV+16,0:P=202
730 FORX=255TO200STEP-6:POKEV+6,X:POKEV+7,155-2/6*X
735 POKE2043,P:FORT=1TO100:NEXT:P=P+1:IFP>203THEN P=202
736 NEXT
740 P=200
745 FORX=198TO132STEP-6:POKEV+6,X:POKEV+7,2/6*X+20
750 POKE2043,P:FORT=1TO200:NEXTT:P=P+1:IFP>201THENP=200
751 NEXT
754 P=202
755 FORX=132TO84STEP-6:POKEV+6,X:POKEV+7,108-2/6*X
760 POKE2043,P:FORT=1TO100:NEXTT:P=P+1:IFP>203THENP=202
761 NEXT
762 FORT=1TO1000:NEXTT
765 FORX=80 TO125:POKEV+6,X:POKEV+7,X
770 POKE2043,204
771 NEXT
775 FORX=125TO160:POKEV+6,X:NEXT
780 POKE2043,205
785 FORX=125TO150:POKEV+7,X:NEXT
790 FORT=1TO1500:NEXTT
800 P=206
805 FORX=155 TO92STEP-3:POKEV+6,X:POKEV+7,X
810 POKE2043,P:FORT=1TO200:NEXTT:P=P+1:IFP>207THENP=206
811 NEXT
815 FORX=92 TO 125:POKEV+6,X:POKEV+7,X:POKE2043,204:NEXT
816 FORX=125 TO130:POKEV+6,X:NEXT
817 FORX=130TO155:POKEV+6,X:POKEV+7,X-5:NEXT
820 POKE2043,210
825 FORX=155 TO 170:POKEV+6,X:NEXT
835 FORX=170 TO185:POKEV+6,X:POKEV+7,320-X
836 POKE2043,208
840 FORT=0TO3*(X-170):NEXTT
841 NEXT
845 P=208
850 FORX=185TO235STEP3:POKEV+6,X:POKEV+7,320-X
855 POKE2043,P:P=P+1:IFP>209 THENP=208
860 FORT=1TO200:NEXT
861 NEXT
864 POKE2043,210:POKEV+7,82
865 FORX=235 TO255:POKEV+6,X
866 FORT=0TO10:NEXTT
867 NEXT
870 POKE2043,204:POKEV+16,8
875 FORX=0TO90:POKEV+6,X:POKEV+7,X+80:NEXT
879 FOR I=0TO3:POKEV+8+2*I,255:NEXT
880 P=200:POKEV+16,248
881 FORI=0TO3:POKE2044+I,211+I:NEXT
882 FORI=0TO4:POKEV+7+2*I,216:NEXT
883 POKEV+21,248
884 FOR X=90 TO6 STEP-6:POKE2043,P
885 FOR I=0TO4:POKEV+6+2*I,X+24*I:NEXT
890 FORT=1TO200:NEXTT:P=P+1:IFP>201THENP=200
895 NEXT
905 POKEV+6,255: POKEV+16,240
910 FOR X=255 TO102STEP-6
915 A=X+24:B=X+48:C=X+72:D=X+96
920 IFA>255 THENA=A-255:GOTO923
921 IFA=255 THENPOKEV+8,A:POKEV+16,224
923 IFB>255 THENB=B-255:GOTO926
924 IFB=255 THENPOKEV+10,B:POKEV+16,192
926 IFC>255 THENC=C-255:GOTO929
927 IFC=255 THENPOKEV+12,C:POKEV+16,128
929 IFD>255 THEND=D-255:GOTO935
930 IF D=255 THENPOKEV+14,D:POKEV+16,0
935 POKE2043,P:POKEV+6,X:POKEV+8,A:POKEV+10,B:POKEV+12,C:POKEV+14,D
940 FORT=1TO200:NEXTT:P=P+1:IFP>201 THENP=200
945 NEXT
950 FORX=102TO 0 STEP-6:POKE2043,P:POKEV+6,X
955 FORT=1TO200:NEXTT:P=P+1:IFP>201THENP=200
960 NEXT
965 FORI=0TO3:POKEV+8+2*I,90+48*I:POKEV+9+2*I,120:NEXT
970 POKEV+29,240:POKEV+23,240
990 FOR I=1TO2000:NEXTI
991 PRINT"[147]"
992 POKE53272,(PEEK(53272)AND240)+4
995 END
1900 FOR I=0TO3:FOR J=0TO2:POKEY+40*I+J,5:NEXT J:NEXTI:RETURN